<?php

class Filter {
	public static function checkLength($string, $length = 10) {
		$strlen = strlen($string);
		if ($strlen < $length) {
			echo breakline("Length too short");
			return 0;
		} else {
			return 1;
		}
	}
		
	public static function filter_link($title, $url) {
		$url = link_exists_url($url);
		$title = link_exists_name($title);
		if (($url == 0) && ($title == 0)) {
			return 1;
		} else return 0;	
	}
}

//filter::checkLength();
?>